package cn.yunyichina.provider.base.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.yunyichina.provider.base.entity.HospitalPaySetting;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;
import cn.yunyichina.provider.iface.entity.HospitalCodeAndAppVo;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-08-13 10:06:04
*/
@Repository
@MyBatisRepository
public interface HospitalDao extends BaseDao<cn.yunyichina.provider.base.entity.Hospital>{

	List<HospitalPaySetting> selectForPaySetting(@Param("wheres")HospitalPaySetting wheres);
	
	/**
	 * 根据id或code查询数据，id和code两者不能都为空
	 * @param hospitalId 可以为空
	 * @param hospitalCode 可以为空
	 * @return
	 */
	public HospitalCodeAndAppVo queryCodeAndApp(@Param("hospitalCode") String hospitalCode,@Param("appCode") String appCode);
}